<?php
/**
 * Created by PhpStorm.
 * User: sw
 * Date: 2018/9/14
 * Time: 17:51
 */

namespace util;


abstract class DiBuilder
{
    protected $di;

    public function __construct(Di $di)
    {
        $this->di = $di;
        $this->buildDi();
    }

    public function get()
    {
        return $this->di;
    }

    abstract protected function buildDi();
}